package com.example.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.nio.file.Path;

@Data
@NoArgsConstructor
public class SplitDTO {

    private String messageId; // 消息ID
    private String seed;                // 文件唯一标识符
    private String originalFilename;    // 原始文件名
    private Path tempFilePath;             // 临时文件路径

    public SplitDTO(String messageId, String seed, String originalFilename, Path tempFilePath) {
        this.messageId = messageId;
        this.seed = seed;
        this.originalFilename = originalFilename;
        this.tempFilePath = tempFilePath;
    }

}
